/*
 * Copyright 2012 Marsrutai.lt
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package lt.marsrutai.mobile.android.activity.intent;

import lt.marsrutai.mobile.android.activity.NearestRoutesActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class NearestRoutesIntentHolder extends IntentHolder {

    private static final String SCOPE_FOLDER = "scopeFolder";
    private static final String STOP_NAME = "stopName";
    private static final String STOP_FULL_NAME = "stopFullName";
    private static final String STOP_DIRECTION_NAME = "stopDirectionName";
    private static final String STOP_ID = "stopId";

    public NearestRoutesIntentHolder(Activity sourceActivity) {
        super(sourceActivity, NearestRoutesActivity.class);
    }

    public NearestRoutesIntentHolder(Intent intent) {
        super(intent);
    }

    public NearestRoutesIntentHolder(Bundle bundle) {
        super(bundle);
    }

    public void setScopeFolder(String scopeFolder) {
        intent.putExtra(SCOPE_FOLDER, scopeFolder);
    }

    public String getScopeFolder() {
        return intent.getStringExtra(SCOPE_FOLDER);
    }

    public void setStopName(String stopName) {
        intent.putExtra(STOP_NAME, stopName);
    }

    public String getStopName() {
        return intent.getStringExtra(STOP_NAME);
    }
    
    public void setStopFullName(String stopFullName) {
        intent.putExtra(STOP_FULL_NAME, stopFullName);
    }

    public String getStopFullName() {
        return intent.getStringExtra(STOP_FULL_NAME);
    }

    public void setStopDirectionName(String directionName) {
        intent.putExtra(STOP_DIRECTION_NAME, directionName);
    }

    public String getStopDirectionName() {
        return intent.getStringExtra(STOP_DIRECTION_NAME);
    }

    public void setStopId(String stopId) {
        intent.putExtra(STOP_ID, stopId);
    }

    public String getStopId() {
        return intent.getStringExtra(STOP_ID);
    }

}
